package com.chaopei.znpk.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor  // 一定要有无参构造方法
@ContentRowHeight(18)
@HeadRowHeight(25)
@ColumnWidth(20)
@TableName("class")
public class Class {
    @ExcelProperty(index = 0,value = "班级编号")
    private Integer classId;

    @ExcelProperty(index = 1,value = "名称")
    private String className;

    @ExcelProperty(index = 2,value = "人数")
    private Integer classCount;
}